/*test组件:MagicalCoder参考lib\mc\magicalcoder.js 闭包的写法有利于内部变量不随意暴漏出去*/
(function(){
    MagicalCoder.install({
        /*左侧可拖拽的源*/
        dragItems:[
            {
               name:"我的组件",
               icon:"layui-icon layui-icon-face-smile",
               children:[
                   {
                        name:"按钮",
                        icon:"ri-checkbox-indeterminate-line",
                        html:"<el-button>确定</el-button>",
                   },
               ]
           }
       ],
       /*自定义组件和属性*/
        components:[
            {
                "identifier":"el-button",
                "properties":{
                    "primary":0,
                    "name":"按钮",
                    "treeExtraName":{"attr":[],"text":true},
                    "dragInto":false,
                    "duplicate":true,
                    "duplicateAttr":[],
                    "copy":true,
                    "paste":false,
                    "canDelete":true,
                    "dblClickChange":{"type":"text"}
                },
                "attributes":[
                    {
                        "title":"属性",
                        "active":true,
                        "content":[
                            {
                                "type":"select",
                                "clearAttr":true,
                                "oneLine":true,
                                "change":"attr",
                                "title":"尺寸",
                                "attrName":"size",
                                "options":[
                                    {
                                        "medium":"中等",
                                        "small":"小",
                                        "mini":"迷你"
                                    }
                                ]
                            },
                            {
                                "type":"text",
                                "clearAttr":true,
                                "oneLine":true,
                                "change":"text",
                                "title":"文本"
                            }
                        ]
                    }
                ]
            }
        ]
    });
})();
